﻿@model AceMobile.Models.Account

@{
    ViewBag.Title = "Tạo user";
}
        <h2>Tạo mới user</h2>

        <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

        @using (Html.BeginForm()) {
            @Html.ValidationSummary(true)
            <fieldset>
                <legend id="p1">Tài khoản</legend>

                <div class="editor-label">
                    @Html.LabelFor(model => model.UserName)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.UserName)
                    @Html.ValidationMessageFor(model => model.UserName)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.Password)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Password)
                    @Html.ValidationMessageFor(model => model.Password)
                </div> 
                <div class="editor-label">
                    @Html.LabelFor(model => model.SecretQuestion)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.SecretQuestion)
                    @Html.ValidationMessageFor(model => model.SecretQuestion)
                </div>      
                <div class="editor-label">
                    @Html.LabelFor(model => model.Email)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>       
                  
                <div class="editor-label">
                    @Html.LabelFor(model => model.Address)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Address)
                    @Html.ValidationMessageFor(model => model.Address)
                </div>       
                <div class="editor-label">
                    @Html.LabelFor(model => model.MobilePhone)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.MobilePhone)
                    @Html.ValidationMessageFor(model => model.MobilePhone)
                </div>       
                <br />
                <b style="color: red">
                    @ViewBag.mess
                </b><br />
                <p>
                    <input type="submit" value="Create" />
                </p>
            </fieldset>
        }

        <div>
            @Html.ActionLink("Trở lại danh sách", "Index")
        </div>
